home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 21 code / Custom GX Printer Drivers / CustomWriter GX 1.0.1 / CustomWriter GX.make < prev    next >
Encoding:
Text File  |  1995-05-03  |  4.6 KB  |  152 lines  |  [TEXT/MPS ]

  1. #
  2. #    FILENAME
  3. #        CustomWriter GX.make
  4. #
  5. #    DESCRIPTION
  6. #        Makefile for the CustomWriter GX driver.
  7. #
  8. #    COPYRIGHT
  9. #        Copyright © 1995 Apple Computer, Inc.
  10. #        All rights reserved.
  11. #    
  12. #    Modification history
  13. #        05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  14. #                                    CustomBufferingAndIO.c.
  15. #
  16. #        01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  17. #                                    ImageWriter driver.
  18. #
  19.  
  20. #========== Directories Containing Source and Object Files ==========
  21.  
  22. ObjDir                    =    :Objects:
  23. SrcDir                    =    
  24. DestDir                    =    
  25.  
  26. #========== Compiler Options ==========
  27.  
  28. AsmOptions                =    -case obj
  29. RezOptions                =    -i "{RIncludes}" -d SystemSevenOrLater=1
  30. COptions                =    -b2 -d applec -i "{CIncludes}"
  31. LinkOptions                =    -ra =resSysHeap,resPurgeable
  32.  
  33. DriverName         = "CustomWriter GX"
  34. DriverCreator     = 'cuWR'
  35. NewSegID        = 0
  36. OldSegID        = 1
  37.  
  38. # Compile and assemble statements
  39. {ObjDir}OldApp.c.o ƒƒ {SrcDir}OldApp.c {SrcDir}CommonDefines.h
  40.     Echo "{DriverName}: Compiling old application"
  41.     C {COptions} -o {ObjDir} {SrcDir}OldApp.c
  42.  
  43. {ObjDir}OldApp.a.o    ƒ     {SrcDir}OldApp.a
  44.     Echo "{DriverName}: Assembling old app jump table"
  45.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}OldApp.a -o {ObjDir}
  46.  
  47. {ObjDir}NewApp.c.o    ƒ {SrcDir}NewApp.c {SrcDir}CommonDefines.h
  48.     Echo "{DriverName}: Compiling new application"
  49.     C {COptions} -o {ObjDir} {SrcDir}NewApp.c
  50.  
  51. {ObjDir}NewApp.a.o    ƒ     {SrcDir}NewApp.a
  52.     Echo "{DriverName}: Assembling new app jump table"
  53.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}NewApp.a -o {ObjDir}
  54.  
  55. {ObjDir}ChooserSupport.c.o    ƒ {SrcDir}ChooserSupport.c {SrcDir}CommonDefines.h
  56.     Echo "{DriverName}: Compiling Chooser support"
  57.     C {COptions} -o {ObjDir} {SrcDir}ChooserSupport.c
  58.  
  59. {ObjDir}ChooserSupport.a.o    ƒ     {SrcDir}ChooserSupport.a
  60.     Echo "{DriverName}: Assembling Chooser support"
  61.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}ChooserSupport.a -o {ObjDir}
  62.  
  63. {ObjDir}CustomBufferingAndIO.c.o ƒ {SrcDir}CustomBufferingAndIO.c {SrcDir}CommonDefines.h
  64.     Echo "{DriverName}: Compiling custom buffering and I/O support"
  65.     C {COptions} -o {ObjDir} {SrcDir}CustomBufferingAndIO.c
  66.  
  67. {ObjDir}GlobalData.c.o    ƒ {SrcDir}GlobalData.c {SrcDir}CommonDefines.h
  68.     Echo "{DriverName}: Compiling global data support"
  69.     C {COptions} -o {ObjDir} {SrcDir}GlobalData.c
  70.  
  71.  
  72. # Link and Rez statements
  73. {DestDir}{DriverName} ƒƒ {SrcDir}OldApp.r {SrcDir}CommonDefines.h
  74.     Echo "{DriverName}: Rezzing old application"
  75.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}OldApp.r
  76.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  77.         
  78. {DestDir}{DriverName} ƒƒ {ObjDir}OldApp.c.o
  79.     Echo "{DriverName}: Linking old application"
  80.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  81.  
  82. {DestDir}{DriverName} ƒƒ {SrcDir}NewApp.r {SrcDir}CommonDefines.h
  83.     Echo "{DriverName}: Rezzing new application"
  84.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}NewApp.r
  85.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  86.  
  87. {DestDir}{DriverName} ƒƒ                         ∂
  88.     {ObjDir}NewApp.a.o                            ∂
  89.     {ObjDir}NewApp.c.o                            ∂
  90.     {ObjDir}CustomBufferingAndIO.c.o            ∂
  91.     {ObjDir}GlobalData.c.o
  92.     Echo "{DriverName}: linking new API"
  93.     Link                                        ∂
  94.         {ObjDir}NewApp.a.o                        ∂
  95.         {ObjDir}NewApp.c.o                        ∂
  96.         {ObjDir}CustomBufferingAndIO.c.o        ∂
  97.         {ObjDir}GlobalData.c.o                    ∂
  98.         ∂
  99.         "{Libraries}Interface.o"                 ∂
  100.         ∂
  101.         {LinkOptions}                            ∂
  102.         -msg noDup                                ∂
  103.         -rt 'pdvr'={NewSegID}                    ∂
  104.         -c {DriverCreator}                        ∂
  105.         -t 'pdvr'                                ∂
  106.         -sg {DriverName}                        ∂
  107.         -m SD_JumpTable                            ∂
  108.         ∂
  109.         -o {DestDir}{DriverName}
  110.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  111.  
  112. {DestDir}{DriverName} ƒƒ                         ∂
  113.     {ObjDir}OldApp.a.o                            ∂
  114.     {ObjDir}OldApp.c.o
  115.     Echo "{DriverName}: linking old API"
  116.     Link                                        ∂
  117.         {ObjDir}OldApp.a.o                        ∂
  118.         {ObjDir}OldApp.c.o                        ∂
  119.         ∂
  120.         {LinkOptions}                            ∂
  121.         -rt 'pdvr'={OldSegID}                    ∂
  122.         -c {DriverCreator}                        ∂
  123.         -t 'pdvr'                                ∂
  124.         -sg {DriverName}                        ∂
  125.         -m SD_JumpTable                            ∂
  126.         ∂
  127.         -o {DestDir}{DriverName}
  128.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  129.  
  130. {DestDir}{DriverName} ƒƒ {SrcDir}ChooserSupport.r {SrcDir}CommonDefines.h
  131.     Echo "{DriverName}: Rezzing Chooser resources"
  132.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}ChooserSupport.r
  133.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  134.  
  135. {DestDir}{DriverName} ƒƒ                         ∂
  136.     {ObjDir}ChooserSupport.a.o                    ∂
  137.     {ObjDir}ChooserSupport.c.o
  138.     Echo "{DriverName}: Linking PACK"
  139.     Link                                        ∂
  140.         {ObjDir}ChooserSupport.a.o                ∂
  141.         {ObjDir}ChooserSupport.c.o                ∂
  142.         ∂
  143.         -rt PACK=-4096                            ∂
  144.         -sg PrintingPACK                        ∂
  145.         -m EntryPoint                            ∂
  146.         ∂
  147.         -o {Targ}
  148.  
  149. {DestDir}{DriverName}    ƒƒ {ObjDir}ChooserSupport.c.o
  150.     Echo "{DriverName}: Linking LDEF"
  151.     Link -w -rt LDEF=-4096 -m LDEF -sg LDEF -o {Targ} {ObjDir}ChooserSupport.c.o
  152.